<html>
<head><meta charset="utf-8"><title>Rust-analyzer in the miri repo · miri · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/269128-miri/index.html">miri</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/269128-miri/topic/Rust-analyzer.20in.20the.20miri.20repo.html">Rust-analyzer in the miri repo</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="224801515"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/269128-miri/topic/Rust-analyzer%20in%20the%20miri%20repo/near/224801515" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Thom Chiovoloni <a href="https://rust-lang.github.io/zulip_archive/stream/269128-miri/topic/Rust-analyzer.20in.20the.20miri.20repo.html#224801515">(Feb 01 2021 at 22:18)</a>:</h4>
<p>Has anybody gotten this set up and working well?</p>



<a name="224876375"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/269128-miri/topic/Rust-analyzer%20in%20the%20miri%20repo/near/224876375" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/269128-miri/topic/Rust-analyzer.20in.20the.20miri.20repo.html#224876375">(Feb 02 2021 at 14:17)</a>:</h4>
<p>I am just using vscode/RA with the Miri folder. It "works" for Miri stuff, but I think RA doesn't have any semantic information about librustc*.</p>



<a name="224876556"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/269128-miri/topic/Rust-analyzer%20in%20the%20miri%20repo/near/224876556" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/269128-miri/topic/Rust-analyzer.20in.20the.20miri.20repo.html#224876556">(Feb 02 2021 at 14:18)</a>:</h4>
<p>You can set <code>rust-analyzer.rustcSource</code> for it to analyze the rustc_* crates.</p>



<a name="224876921"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/269128-miri/topic/Rust-analyzer%20in%20the%20miri%20repo/near/224876921" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Thom Chiovoloni <a href="https://rust-lang.github.io/zulip_archive/stream/269128-miri/topic/Rust-analyzer.20in.20the.20miri.20repo.html#224876921">(Feb 02 2021 at 14:21)</a>:</h4>
<p>Oh, that helps.</p>



<a name="225463365"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/269128-miri/topic/Rust-analyzer%20in%20the%20miri%20repo/near/225463365" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/269128-miri/topic/Rust-analyzer.20in.20the.20miri.20repo.html#225463365">(Feb 07 2021 at 13:07)</a>:</h4>
<p><span class="user-mention silent" data-user-id="133247">bjorn3</span> <a href="#narrow/stream/269128-miri/topic/Rust-analyzer.20in.20the.20miri.20repo/near/224876556">said</a>:</p>
<blockquote>
<p>You can set <code>rust-analyzer.rustcSource</code> for it to analyze the rustc_* crates.</p>
</blockquote>
<p>which path does one have to set here? I keep getting an error saying "the manifest path must be a path to a Cargo.toml file". I tried <code>/home/r/.rustup/toolchains/miri/lib/rustlib/rustc-src/rust/compiler/</code> and there seems to be no<code>Cargo.toml</code> anywhere near that place.</p>



<a name="225463607"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/269128-miri/topic/Rust-analyzer%20in%20the%20miri%20repo/near/225463607" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/269128-miri/topic/Rust-analyzer.20in.20the.20miri.20repo.html#225463607">(Feb 07 2021 at 13:14)</a>:</h4>
<p>Well, there are <code>Cargo.toml</code> for each of the crates, but then which crate should I point it to? That doesn't seem to make much sense.</p>



<a name="225463788"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/269128-miri/topic/Rust-analyzer%20in%20the%20miri%20repo/near/225463788" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/269128-miri/topic/Rust-analyzer.20in.20the.20miri.20repo.html#225463788">(Feb 07 2021 at 13:18)</a>:</h4>
<p>Reported as <a href="https://github.com/rust-analyzer/rust-analyzer/issues/7589">https://github.com/rust-analyzer/rust-analyzer/issues/7589</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>